﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;

namespace ERP.QualityAssurance.Dto
{
    public class HolidaySettingDto : EntityDto<int>
    {
        /// <summary>
        /// 日期
        /// </summary>
        public DateTime HolidayDate { get; set; }

        /// <summary>
        /// 类型：0-假日，1-班（工作日）
        /// </summary>
        public int HolidayType { get; set; }
    }

    public class CreateOrUpdateHolidaySettingDto
    {
        public int? Id { get; set; }

        [Required]
        public DateTime HolidayDate { get; set; }

        [Required]
        public int HolidayType { get; set; }
    }
    
    public class DeleteHolidaySettingDto
    {
        [Required]
        public string Date { get; set; }
    }
}
